var foo = function () {
  console.log("foo1")
}
foo()

var foo = function () {
  console.log("foo2222")
}
foo()


function foo() {
  console.log("1111")
  console.log("foo1")
}
foo()

function foo() {
  console.log("2222")
  console.log("foo2")
}
foo()